﻿using System;

namespace HouseKeeperCore.Elemental
{
    /// <summary>
    ///  A basic implementation of IEvent
    /// </summary>
    public class Event : IdentifiableObject, IEvent
    {
        #region Properties

        #region Implementation of IEvent

        /// <summary>
        ///  When the event happens
        /// </summary>
        public DateTime? Time
        {
            get;
            internal set;
        }

        #endregion

        #endregion

        #region Constructors

        /// <summary>
        ///  Instantiates an event with specified ID and time it happens
        /// </summary>
        /// <param name="id">ID</param>
        /// <param name="time">When the event happens</param>
        public Event(long id, DateTime? time)
            : base(id)
        {
            Id = id;
            Time = time;
        }

        #endregion
    }
}
